import request from '../../request'
export function listCostAndInComeByPDept(params, pDeptCode) {
  return request({
    url: `baseCost/listCostAndInComeByPDept/${pDeptCode}`,
    method: 'POST',
    data: params
  })
}
// 收入分析-科室项目收入分析
export function listInComeByDateAndPDeptWithFee(params, pDeptCode) {
  return request({
    url: `baseInCome/listInComeByDateAndPDeptWithFee/${pDeptCode}`,
    method: 'POST',
    data: params
  })
}
// 收入分析-科室收入分析
export function listInComeByDateAndPDeptWithAnalyse(params, pDeptCode) {
  return request({
    url: `baseInCome/listInComeByDateAndPDeptWithAnalyse/${pDeptCode}`,
    method: 'POST',
    data: params
  })
}

// 收入分析-科室项目收入分析-金额弹窗
export function listBaseInComeVOByDateAndPDeptGroupWithDeptAndFee(params, pDeptCode, feeCode, deptCode) {
  return request({
    url: `baseInCome/listBaseInComeVOByDateAndPDeptGroupWithDeptAndFee/${pDeptCode}/${deptCode}/${feeCode}`,
    method: 'POST',
    data: params
  })
}

// 成本分析-科室成本分析-项目名称弹窗
export function listDeptCostAnalysis(params, deptCode) {
  return request({
    url: `amortizationData/listDeptCostAnalysis/${deptCode}`,
    method: 'POST',
    data: params
  })
}

// 成本分析-科室成本分析
export function deptCostAnalysis(params, pDeptCode) {
  return request({
    url: `amortizationData/deptCostAnalysis/${pDeptCode}`,
    method: 'POST',
    data: params
  })
}
// 成本分析-科室固定资产查询
export function listDepreciationByPDeptCode(params, pDeptCode) {
  return request({
    url: `etlDepreciationDetail/listDepreciationByPDeptCode/${pDeptCode}`,
    method: 'POST',
    data: params
  })
}

// 收益分析-收益构成分析
export function listDeptProfitByDateAndPDept(params, pDeptCode) {
  return request({
    url: `baseInCome/listDeptProfitByDateAndPDept/${pDeptCode}`,
    method: 'POST',
    data: params
  })
}

export function listDeptProfitCompositionByDateAndPDept(params, pDeptCode) {
  return request({
    url: `baseInCome/listDeptProfitCompositionByDateAndPDept/${pDeptCode}`,
    method: 'POST',
    data: params
  })
}

export function pointAnalysis(params, pDeptCode, type) {
  return request({
    url: `baseInCome/pointAnalysis/${pDeptCode}/${type}`,
    method: 'POST',
    data: params
  })
}

export function getDeptCodeVoList(params, pDeptCode, type) {
  return request({
    url: `bdSysUserDeptCode/getDeptCodeVoList`,
    method: 'get'
  })
}

